import request from '@/utils/request'

// 查询用户评分列表
export function listScores(query) {
  return request({
    url: '/eval/scores/list',
    method: 'get',
    params: query
  })
}

// 查询用户评分详细
export function getScores(id) {
  return request({
    url: '/eval/scores/' + id,
    method: 'get'
  })
}

// 新增用户评分
export function addScores(data) {
  return request({
    url: '/eval/scores',
    method: 'post',
    data: data
  })
}

// 修改用户评分
export function updateScores(data) {
  return request({
    url: '/eval/scores',
    method: 'put',
    data: data
  })
}

// 删除用户评分
export function delScores(id) {
  return request({
    url: '/eval/scores/' + id,
    method: 'delete'
  })
}
